# coding=utf-8
import sae
import os
import sys
import tempfile

tempfile.tempdir = 'tempdir'
# tempfile.tempdir = sae.core.get_tmp_dir() # SAE 平台的临时目录


root = os.path.dirname(__file__)

# 两者取其一
sys.path.insert(0, os.path.join(root, 'site-packages'))
# sys.path.insert(0, os.path.join(root, 'site-packages.zip'))
from TextToSpeech import app

application = sae.create_wsgi_app(app)
